<?php
require_once 'mysql_class.php';

$name=$_GET['name'];
$tel=$_GET['phone'];
$mail=$_GET['mail'];
$contract=$_GET['cont'];
$content=$_GET['content'];

$rs=0;



	$rs=actionAddHandler($name,$tel,$mail,$contract,$content);
	if($rs>0){
		echo '0';

	}else{
		echo 'error';
	}

/*
 * 插入留言反馈信息
 */
function actionAddHandler($name,$tel,$mail,$contract,$content){
	global $db;
	$colKeys=array(
			'name'=>$name,'tel'=>$tel,'email'=>$mail,'contact'=>$contract,'info'=>$content,
			'lang'=>'cn','readok'=>0,'access'=>0
			);
	return $db->insert('tb_message',$colKeys);
}


?>